package com.gitee.wsl.ext.set.builder

import com.gitee.wsl.ext.collection.builder.CollectionBuilder
import com.gitee.wsl.ext.collection.builder.buildCollection

@Suppress("UNCHECKED_CAST")
inline fun <T> buildSet(builder: (CollectionBuilder<T>).() -> Unit): Set<T> =
    buildCollection(mutableSetOf(), builder) as Set<T>